package com.tjmc.nsia.core.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

/**
 * @author Luc
 * @version 1.0
 * @date 2024-06-06 17:49
 */

@Configuration
public class NsiaConfig {

    private static boolean addressEnabled;

    public static boolean isAddressEnabled() {
        return addressEnabled;
    }

    @Value("${nsia.addressEnabled}")
    public void setAddressEnabled(boolean addressEnabled) {
        NsiaConfig.addressEnabled = addressEnabled;
    }
}
